import request from '@/utils/request'

// 查询新闻内容列表
export function listNewsContent(query) {
  return request({
    url: '/ap/newsContent/list',
    method: 'get',
    params: query
  })
}

// 查询新闻内容详细
export function getNewsContent(id) {
  return request({
    url: '/ap/newsContent/' + id,
    method: 'get'
  })
}

// 新增新闻内容
export function addNewsContent(data) {
  return request({
    url: '/ap/newsContent',
    method: 'post',
    data: data
  })
}

// 修改新闻内容
export function updateNewsContent(data) {
  return request({
    url: '/ap/newsContent',
    method: 'put',
    data: data
  })
}

// 删除新闻内容
export function delNewsContent(id) {
  return request({
    url: '/ap/newsContent/' + id,
    method: 'delete'
  })
}
